package com.ulife.permission.dao;

import java.sql.SQLException;
import java.util.List;

import com.ulife.permission.dao.dataobject.UserDO;

public interface UserDao {

	UserDO getUserByNameAndPassword(String userName, String password) throws SQLException;

	UserDO getUserById(long userId) throws SQLException;

	int addUser(UserDO user) throws SQLException;

	List<UserDO> getAllUser() throws SQLException;

	int delUser(long userId) throws SQLException;

	int updateUser(UserDO user) throws SQLException;

	List<UserDO> getAllAvailableUsers() throws SQLException;
	
}
